﻿using System;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace Fake
{

    public interface IAudio
    {
        void Play();

        void Stop();

        void Pause();
    }


    public class Test : IAudio
    {
        int x = 10;
        int y = 100;

        public void Play()
        {
            Console.WriteLine("playing....");
        }

        public void Stop()
        {
            Console.WriteLine("stoping....");
        }

        public void Pause()
        {
            Console.WriteLine("pausing....");
        }

        public void LetPlay()
        {
            Console.WriteLine("test...");
        }

        public override int GetHashCode()
        {
            return x ^ y;
        }




        static void Main(string[] args)
        {

            IAudio t = new Test();
            Console.WriteLine(t.GetHashCode());

            IAudio u = new Test();
            Console.WriteLine(u.GetHashCode());



            Console.ReadKey();

            
        }

    }
}
